define(function(){
function login2(){
	$.get("http://localhost/Chanyouji/dist/src/app/scripts/3-1.php",function(data){
    // 将json格式的字符串(json串)转换成json对象
	    var obj = JSON.parse(data);
	    var html2 = template('test2', obj);
	    document.getElementById('matter').innerHTML = html2;
	});
};
$("#lv").on("click",function(){
	$("#d").css("left","43%");
	$(document).scrollTop(480);
	$("#nn").css("width","750px");
	$("#nn").html($("<span class='jing dao2' id='ya'>国外-亚洲</span><span class='dao2' id='o'>国外-欧洲</span><span class='dao2' id='ta'>国外-其他</span><span class='dao2' id='tai'>国内-港澳台</span><span class='dao2' id='da'>国内-大陆</span>"));
	login2();
	$("#ye").html("");
});

$("#xie").on("click",function(){
	$("#d").css("left","75.5%");
	$(document).scrollTop(480);
});

//导航高亮
$("#nn").on("click",".dao2",function(){
	$(this).addClass("jing").siblings().removeClass("jing"); 
});
$("#nn").on("click","#ya",function(){
	login2();
})

function login3(){
	$.get("http://localhost/Chanyouji/dist/src/app/scripts/3-2.php",function(data){
    // 将json格式的字符串(json串)转换成json对象
	    var obj = JSON.parse(data);
	    var html2 = template('test2', obj);
	    document.getElementById('matter').innerHTML = html2;
	});
};
function login4(){
	$.get("http://localhost/Chanyouji/dist/src/app/scripts/3-3.php",function(data){
    // 将json格式的字符串(json串)转换成json对象
	    var obj = JSON.parse(data);
	    var html2 = template('test2', obj);
	    document.getElementById('matter').innerHTML = html2;
	});
};
function login5(){
	$.get("http://localhost/Chanyouji/dist/src/app/scripts/3-4.php",function(data){
    // 将json格式的字符串(json串)转换成json对象
	    var obj = JSON.parse(data);
	    var html2 = template('test2', obj);
	    document.getElementById('matter').innerHTML = html2;
	});
};
function login6(){
	$.get("http://localhost/Chanyouji/dist/src/app/scripts/3-5.php",function(data){
    // 将json格式的字符串(json串)转换成json对象
	    var obj = JSON.parse(data);
	    var html2 = template('test2', obj);
	    document.getElementById('matter').innerHTML = html2;
	});
};
$("#nn").on("click","#o",function(){
	login3();
});
$("#nn").on("click","#ta",function(){
	login4();
});
$("#nn").on("click","#tai",function(){
	login5();
});
$("#nn").on("click","#da",function(){
	login6();
});
})